<h2>Notificari</h2>
 
<div id="accordion">
        <?php
        if ($commits)
            {
        ?>
        <h3>
            New Commits
        </h3>
        <div>
            <?php
                foreach($commits as $c)
                    {
                    echo '<div class="stage_task">'.$c['User']['nume'].' - <a href="'.$c['Commit']['url'].'">link</a></div>';   
                    }
            ?>
            

        </div>
        
        <?php
            }
            foreach($themes as $theme)
                if (isset($theme['Stages']))
                    {
        ?>
        <h3><?=$theme['Theme']['name']?></h3>
        <div>
            <?php
                foreach($theme['Stages'] as $stage)
                    {
                    echo '<div class="stage_task">'.$stage['Stage']['name'].' - <span class="red_date">'.$stage['Stage']['limit_date'].'</span></div>';   
                    }
            ?>
        </div>
        <?php
            }
        ?>
    
</div>